package com.erb.service.ljy;


import com.erb.entity.CapitalLog;
import com.erb.entity.Pager;
import com.erb.mapper.capitalLogMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class capitalLogService {

	@Resource
	private capitalLogMapper capitallogmapper;

	public Integer countselcap(Integer uid, Integer type, String tradeDate) {
		return capitallogmapper.capcountsel(uid, type, tradeDate);
	}

	public List<CapitalLog> pageselcap(Pager pager, Integer uid, Integer type, String tradeDate) {
		return capitallogmapper.cappagesel((pager.currPage - 1) * pager.pageSize, pager.pageSize, uid, type, tradeDate);
	}

	public List<CapitalLog> capitlogList(int uid) {
		return capitallogmapper.capitlogList(uid);
	}

	//    按条件查询
	public List<CapitalLog> capitlogSearchList(int uid, Integer type, String tradeDate) {
		return capitallogmapper.capitlogSearchList(uid, type, tradeDate);
	}

}
